<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<s:hidden name="userId" id="userId"/>
<table class="queryTable" >
	<tr>
	<!-- 
		<td class="queryTitle" width="80px">用户ID</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryUserId" />
		</td>
	 -->
		<td class="queryTitle" width="80px">字体名</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryFontName" />
		</td>
		<td class="queryTitle" width="80px">原文件名</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryFileName" />
		</td>
		<td class="queryTitle" width="80px">发布状态</td>
		<td class="queryContent">
		    <select id="queryPublish" name="queryPublish" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
	    		<option value="">[不限]</option>
				<option value="0">未发布</option>
				<option value="1">已发布</option>
			</select> 
		</td>
		<td class="queryBtnTd">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
	</tr>
</table>

<table id="fontGrid"></table>

<div id="addDlg" class="easyui-window" title="" closed="true" style="width:680px; height:auto;text-align:left; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="fontUploadForm"  method="POST" enctype="multipart/form-data">
			<!-- <table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="fontUploadTable">
				<tr>	
					<td class="queryContent" colspan="4">
						<input type='file' id='fontFile' name='fontFile' size="100" value='字体选择' style="border:0px"/>
					</td>
				</tr>
			</table> -->
			<h4>所选择文件列表：<span style="color:red">(*请尽量使用英文名文件)</span></h4>
			<div id="ossfile"></div>
			<div style="display:none;margin-top:10px" id="uploadMsg">
				<input type="text" name="msgTxt" id="msgTxt" value="处理完毕！" size="100" readonly="true" style="border:0px;left:20px;color:green"/>
		    </div>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="addDlgBtn">
		<!-- <a class="easyui-linkbutton" iconCls="icon-ok" id='postFont' name='postFont' href="javascript:void(0)" onclick="doPostData()">上传</a> -->
		<a class="easyui-linkbutton" id="selFiles" iconCls="icon-add" href="javascript:void(0)" >选择文件</a>
		<a class="easyui-linkbutton" id="postFiles" iconCls="icon-ok" href="javascript:void(0)" >上传</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelPostData()">取消</a>
    </div>
</div>

<div id="nameDlg" class="easyui-window" title="" closed="true" style="width:600px; height:auto;text-align:left; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="nameForm"  method="POST">
			<s:hidden name="fontId" id="fontId"/>
			<h4 style="color:red">*注意:请勿与其他字体重名</h4>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="nameTable">
				<tr>	
					<td class="queryTitle" width="80px">字体名称</td>
					<td class="queryContent">
						<s:textfield id="fname" name="fname" cssClass="inputText easyui-validatebox" data-options="" cssStyle="width:250px"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="nameBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdName()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdName()">取消</a>
    </div>
</div>

<script type="text/javascript" src="${ctx }/js/qiniu/plupload/plupload.full.min.js"></script>
<script type="text/javascript" src="${ctx }/js/qiniu/plupload/i18n/zh_CN.js"></script>
<script type="text/javascript" src="${ctx }/js/qiniu/ui.js"></script>
<script type="text/javascript" src="${ctx }/js/qiniu/qiniu.js"></script>
<script type="text/javascript" src="${ctx }/js/qiniu/highlight/highlight.js"></script>

<script type="text/javascript" src="${ctx }/js/material/font_info.js"></script>
</body>
</html>
